const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,

  token: state => state.user.token,
  userId: state => state.user.userInfo.userId,

  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  company: state => state.user.userInfo.company,
  departmentName: state => state.user.userInfo.departmentName
  // age: state => state.user.age
}
// $store.state.user.age  =>  $store.getters.age
export default getters
